#ifndef _CHARACTER_H
#define _CHARACTER_H

#include "kasztok.h"
#include "zombie.h"

class Character
{
	private:
		std::string name;
		Caste* caste;
		int xp;
		int nextup;
		int hp;
		int dAtt;
		int dDef;
		int dSpd;
		int Att;
		int Def;
		int Spd;
		bool dead;
		bool finished;
		int aktLoc;
		bool metZombie;
	public:
		Character(std::string n):name(n) {dead=false; finished=false; aktLoc=0; xp=1; nextup=11; hp=100; metZombie=false;}
		~Character();
		void ChCaste();
		void Move(int loc, bool lock, bool enemy);
		bool FightAndWin();
		bool SolveRiddle();
		bool IsDead() {return dead;}
		bool IsFinished() {return finished;}
		std::string Name() {return name;}
		int Where() {return aktLoc;}
		void Die() {dead=true;}
		void Escape() {finished=true;}
		void ModPoint(int what, int to);
};
#endif
